import Vue from 'vue'
import App from './App.vue'
import vueAxios from 'vue-axios'
import axios from '@/router/axios'
import router from '@/router'
import store from '@/store'

import '@/style/reset.scss' // 重置默认样式
import '@/style/common.scss' // 公共样式
import '@/style/index.scss' // 组件样式

import { loadStyle } from '@/util/util'
import { iconfontUrl, iconfontVersion } from '@/config/env.js'

import bookUI from '@/components/layout/index'
Vue.use(bookUI)

iconfontVersion.forEach(ele => {
  loadStyle(iconfontUrl.replace('$key', ele))
})

Vue.config.productionTip = false

Vue.use(vueAxios, axios)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
